<?php

return array(
	'status' => array(
		'ST_NONE' => '未审核',
		'ST_PASSED' => '审核通过',
		'ST_UNPASSED' => '审核不通过',
	),
	'rules' => array(
		'class' => 'DefaultRuleParser',
		'config' => array(
			'dealer' => array(
				'*' => array('view'),
			),
			'provider' => array(
				'*' => array('view'),
			),
			AdminUser::ROLE_OPERATOR => array(
				'ST_NONE' => array('passed','unpassed','edit','delete','view'),
				'ST_PASSED' => array('view'),
				'ST_UNPASSED' => array('view','passed','edit'),
				'*' => array('view'),
			),
		),
		'roleDefines' => array(
			'dealer' => 'Yii::app()->adminUser->role == AdminUser::ROLE_DEALER',
			'provider' => 'Yii::app()->adminUser->role == AdminUser::ROLE_PROVIDER',
		),
	),
	
	'_import' => array(
		array('rules.roleDefines.*', 'status.common//rules.roleDefines.*'),
	),
);